package com.onpositive.simple.persistance;

abstract class AbstractObjectStore<T> implements IStore<T> {
	
	protected final RecordStorage recordStorage ;
	protected final IStringStorage stringStorage ;
	protected final Class<T> objectClass ;
	protected final String storageType ;
	protected String path ;
	
	protected int[] fieldScheme ;
	
	public AbstractObjectStore( Class<T> clazz, RecordStorage recordStorage, IStringStorage stringStorage, String storageType, String path ) {
		super();
		this.objectClass = clazz ;
		this.recordStorage = recordStorage;
		this.stringStorage = stringStorage;
		this.storageType = storageType ;
		this.path = path ;
	}
	//protected abstract T getObject( R record ) ;
	//protected abstract R getRecord( T object ) ;
	
	String getStorageType(){ return storageType; }
	String getPath(){ return path; }
}
